<{include file="header.html"}>

<{include file="sidebar-menu.html"}>

<!--main-container-part-->
<div id="content">

    <{include file="breadcrumbs.html"}>

    <div class="container-fluid">
        <div class="widget-box zxblockui">

            <{include file="include/form_header.html"}>

            <form class="widget-content nopadding">
                <table class="table table-bordered table-striped">
                    <thead>
                    <tr>
                        <th width="3%">序号</th>
                        <th width="15%">名称</th>
                        <th width="12%">开始时间</th>
                        <th width="12%">结束时间</th>
                        <th width="10%">状态</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <{foreach item=i key=k from=$data_rs}>
                    <tr>
                        <td>
                            <{if $pager}>
                            <{php}>echo ($this->_tpl_vars["pager"]["current_page"] - 1 ) * $this->_tpl_vars["pager"]["page_size"] + $this->_tpl_vars['k']+1;<{/php}>
                            <{else}>
                            <{$k+1}>
                            <{/if}>
                        </td>
                        <td><{$i.name}></td>
                        <td>
							<{if $i.starttime neq '0000-00-00'}>
							<{$i.starttime}>
							<{else}>
							-
							<{/if}>
						</td>
						<td>
							<{if $i.endtime neq '0000-00-00'}>
							<{$i.endtime}>
							<{else}>
							-
							<{/if}>
						</td>
                        <td>
                            <{if $i.status eq '0'}>
                            <span class="zx_green">未开始</span>
                            <{elseif $i.status eq '1'}>
                            <span class="zx_red">进行中</span>
                            <{elseif $i.status eq '3'}>
                            <span class="zx_gray">已过去	</span>
                            <{/if}>
                        </td>
                      
                        <td>
                            <a href="<{spUrl c=schoolyear a=modify id=$i.id}>" class="btn btn-primary btn-mini">查看/修改状态</a>
                            <a href="javascript:" zxhref="<{spUrl c=$G__C a=delete id=$i.id}>"  zxalert="确认删除该信息吗?" class="btn btn-danger btn-mini general_post">删除</a>	
                        </td>
                    </tr>
                    <{foreachelse}>
                    <tr>
                        <td colspan="10">无匹配记录</td>
                    </tr>
                    <{/foreach}>
                    </tbody>
                </table>

                <div class="table_footer_div">

                    <{if $data_rs}>

                    <{include file="pager.html"}>

                    <{/if}>
                </div>

            </form>

        </div>
    </div>

</div>

<{include file="footer.html"}>